package com.dyness.sdsp.domain;

import java.util.Date;

/**
 * @author haiqing.gao
 * @date 2024-01-05 14:33
 */
public class SysMessageHelp {

    public static SysMessage buildZh(String code, String message) {
        return SysMessage.builder()
                .code(code)
                .message(message)
                .language("zh-CN")
                .remark("excel 导入")
                .module("city")
                .exceptionCode(null)
                .createdBy("2")
                .createdTime(new Date())
                .modifiedBy("2")
                .modifiedTime(new Date())
                .build();
    }

    public static SysMessage buildDe(String code, String message) {
        return SysMessage.builder()
                .code(code)
                .message(message)
                .language("de-DE")
                .remark("excel 导入")
                .module("city")
                .exceptionCode(null)
                .createdBy("2")
                .createdTime(new Date())
                .modifiedBy("2")
                .modifiedTime(new Date())
                .build();
    }

    public static SysMessage buildEn(String code, String message) {
        return SysMessage.builder()
                .code(code)
                .message(message)
                .language("en-US")
                .remark("excel 导入")
                .module("city")
                .exceptionCode(null)
                .createdBy("2")
                .createdTime(new Date())
                .modifiedBy("2")
                .modifiedTime(new Date())
                .build();
    }
}
